package com.sunpy.commonlock.quartz;

import org.quartz.Job;
import org.quartz.JobDetail;

import java.util.Map;

public interface IQuartzService {

    void doScheduleJob(String jobName, Class<? extends Job> cls,
                       String cron, Map<String, Object> paramMap);

    void deleteJob(String jobName);

    void updateJob(String jobName, Class<? extends Job> cls,
                   String cron, Map<String, Object> paramMap);

    JobDetail getDetail(String jobName, Class<? extends Job> cls);

}
